package moveableStuff;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class moveableJLabel{
	JFrame frame;
	JLabel label;
	public static void main(String[] args) {
		moveableJLabel jlabel = new moveableJLabel();
	}
	moveableJLabel(){
		frame = new JFrame();
		frame.setVisible(true);
		frame.setSize(500, 500);
		frame.setLayout(null);
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		label = new JLabel("text");
		label.setBounds(25, 25, label.getWidth(), label.getHeight());
		//frame.add
		frame.add(label);
		init();
	}
	public void init(){
		label.addMouseMotionListener(new MouseMotionListener() {
			
			@Override
			public void mouseMoved(MouseEvent arg0) {				
			}
			
			@Override
			public void mouseDragged(MouseEvent arg0) {
				
				
			}
		});
	}
	
}
